<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>慢性病证表</title>

</head>
<body>
<div>
	<form id="mainform" action="${path}/illCard/add" method="post">
		<table class="formTable">
			<tr>
				<td>慢性病证编号：</td>
				<td>
					<input type="text" name="illCardNo" class="easyui-validatebox" data-options="width: 150" value="${illCard.illCardNo}"/>
					
					
				</td>
			</tr>
			<tr>
				<td>参合证号：</td>
				<td>
					<input type="text" name="partNo" class="easyui-validatebox" data-options="width: 150" value="${illCard.partNo}"/>
					
					
				</td>
			</tr>
			<tr>
				<td>身份证号：</td>
				<td>
					<input type="text" name="cardNo" class="easyui-validatebox" data-options="width: 150" value="${illCard.cardNo}"/>
					
					
				</td>
			</tr>
			<tr>
				<td>疾病名称：</td>
				<td>
					<input type="text" name="illName" class="easyui-validatebox" data-options="width: 150" value="${illCard.illName}"/>
					
					
				</td>
			</tr>
			<tr>
				<td>起始时间：</td>
				<td>
					<input type="text" name="startDay" class="Wdate"
						placeholder="点击选择时间"
						onclick="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"
						readonly="readonly" data-options="width: 150,required:true"value="${illCard.startDay}"/>
					
					
				</td>
			</tr>
			<tr>
				<td>终止时间：</td>
				<td>
					<input type="text" name="endDay" class="Wdate"
						placeholder="点击选择时间"
						onclick="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"
						readonly="readonly" data-options="width: 150,required:true" value="${illCard.endDay}"/>
					
					
				</td>
			</tr>
		</table>
	</form>
</div>

<script type="text/javascript">


//提交表单
$('#mainform').form({    
    onSubmit: function(){    
    	var isValid = $(this).form('validate');
		return isValid;	// 返回false终止表单提交
    },    
    success:function(data){   
    	if(familyInfoDg!=null)
    		familyInfoDg.datagrid('reload');
    	successTip(data,partInstDg,d);
    }    
});    
</script>
</body>
</html>